package distributedbank.gui.messages;

import distributedbank.gui.BranchGui;
import distributedbank.server.messages.Acknowledgment;

/**
 * The base class of all messages sent to the GUI. This class is the opposite of
 * distributedbank.server.messages.Request; see the documentation for that class
 * for more information.
 */
public abstract class Response
        extends Acknowledgment {
    private static final long serialVersionUID = 1L;

    public final int branchId;

    public Response(int transactionId, int branchId) {
        super(transactionId);
        this.branchId = branchId;
    }

    public abstract void runResponse(BranchGui gui);
}
